import { get } from '/@/api/request';

export enum Api {
    departList = '/sys/sysDepart/allSecondaryDeparts',
    server = '/health-emergency/emergency/tblUserHelp/statistics',
    getDetail = '/health-medical/medical/hospital/getMedicalHospital',
    complaint = '/health-emergency/emergency/tblHelpCenter/sicknessTypeStatistic',
    orderDetail = '/health-emergency/emergency/order/list',
    listCustom = '/health-watch/watch/watchMonitorData/listCustom',
}

//获取全部部门
export const getDepart = (params: any) => get(Api.departList, params);
//服务详情数据
export const list = (params: any) => get(Api.server, params);
//主诉分类
export const complaint = (params: any) => get(Api.complaint, params);
//体检数据
export const getDetail = (params: any) => get(Api.getDetail, params);
//获取主诉分类应急工单详情
export const getOrderDetail = (params: any) => get(Api.orderDetail, params);
//副屏预警查看详情
export const getEarlyWarningDetail = (params: any) => get(Api.listCustom, params);
